import { axios } from '@/utils/request'

const api = {
  setIntegralRules: '/saas/set-integral-rules',
  getIntegralRules: '/saas/get-integral-rules',
  saasGetList: '/saas/get-list',
  saasGetStore: '/saas/get-store',
  saasSetStatus: '/saas/set-status'
}

export default api

export function setIntegralRules(data) {
  return axios({
    url: api.setIntegralRules,
    method: 'post',
    data
  })
}

export function getIntegralRules(data) {
  return axios({
    url: api.getIntegralRules,
    method: 'post',
    data
  })
}

export function saasGetList(data) {
  return axios({
    url: api.saasGetList,
    method: 'post',
    data
  })
}

export function saasGetStore(data) {
  return axios({
    url: api.saasGetStore,
    method: 'post',
    data
  })
}

export function saasSetStatus(data) {
  return axios({
    url: api.saasSetStatus,
    method: 'post',
    data
  })
}
